public class GoodsTest {
    public static void main(String[] args) {
        Goods[] arr = new Goods[3];
        Goods g1 = new Goods("230330","电视",1234,23);
        Goods g2 = new Goods("230990","冰箱",12345,34);
        Goods g3 = new Goods("456","手机",5555,56);
        arr[0] = g1;
        arr[1] = g2;
        arr[2] = g3;
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i].getId()+", "+arr[i].getPrice()+", "+arr[i].getPrice()+", "+arr[i].getCount());
        }
    }
}
